import { request } from "./request";

// 获取用户信息
export const getUser = (params)=> {
  return request({
    url: '/manager/getUserState',
    params
  })
}


// 新增用户信息
export const addUserInfo = (data)=> {
  return request({
    method:'post',
    url: '/manager/addUserInfo',
    data
  })
}

// 修改用户信息
export const updateUser = (data) => {
  return request({
    method: 'post',
    url: '/manager/updateUser',
    data
  })
}

// 删除用户信息
export const deleteUser = (data) => {
  return request({
    method: 'post',
    url: "/manager/deleteUser",
    data
  })
}

// 查询用户信息
export const searchUser = (data) => {
  return request({
    method: 'post',
    url: "/manager/searchUser",
    data
  })
}
// 获取电动车品牌
export const getElecBrand = (params)=>{
  return request({
    url: '/manager/getElecBrand',
    params
  })
}

// 获取订单信息
export const getOrderInfo = (params)=>{
  return request({
    method:'get',
    url: '/manager/getOrderInfo',
    params,
    
  })
}

